package com.sk.sk_frame_cloud.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sk.sk_frame_cloud.entity.SysProManage;
import com.sk.sk_frame_cloud.param.ProManageParam;
import com.sk.sk_frame_cloud.res.CommonResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiaok
 * @since 2023-12-15
 */
public interface ISysProManageService extends IService<SysProManage> {

    /**
     * 检测当前项目名，项目code
     * @param proManageParam
     * @return
     */
    public CommonResponse proNameIsExist(ProManageParam proManageParam);


    /**
     * 创建项目
     * @param proManageParam
     * @return
     */
    public CommonResponse createPro(ProManageParam proManageParam);


    /**
     * 变更项目状态
     *
     * @param proStatus    "1:创建 2:已初始化 3:已生成"
     * @param proManageSid
     */
    public void updateProStatus(String proStatus, String proManageSid);


    /**
     * 获取当前操作的项目code值
     * @param proSid
     * @return
     */
    String getProCode(String proSid);

}
